Populate an object from a dictionary in python when object params are known